-
Notifications
You must be signed in to change notification settings - Fork 17
RUN-41 Serde deprecated #318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
e8c4d78 to
323233a
Compare
323233a to
490efba
Compare
c8544c7 to
69e9ac5
Compare
a6e3cc5 to
91d4d14
Compare
91d4d14 to
5209c05
Compare
5209c05 to
b1ba482
Compare
| - `internal::timestamp_millis` | ||
| - `internal::account_amounts` | ||
| - `internal::duration_millis` | ||
| - `types::smart_contracts::contract_trace_Via_events` | ||
| - `types::summary_helper` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notice that none of these are public, so we don't need to mention them
| - `internal::duration_millis` | ||
| - `types::smart_contracts::contract_trace_Via_events` | ||
| - `types::summary_helper` | ||
| - serde relevant `derive`s and `impl`s guarded by flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the formulation you used in the readme is more precise. "The flag serde_deprecated now guards serde::Serialize and serde::Deserialize implementations on the following types. The implementations will eventually be removed".
Derive is just an implementation detail of how the traits are implemented and is not really relevant to mention.
| - `types::smart_contracts::instance_parser::InstanceInfoHelper` | ||
| - `types::smart_contracts::ContractContext` | ||
| - `types::smart_contracts::InvokeContractResult` | ||
| - `examples::update-validator-score-param::main` test to print results when flag disabled; without serde |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the change to examples is not really notable enough to mention (but not a big deal, we just need some filter of notability in what we mention)
| - `types::queries::PendingUpdate` | ||
| - `types::queries::PendingUpdateEffect` | ||
| - `types::smart_contracts::InstanceInfo` | ||
| - `types::smart_contracts::instance_parser::InstanceInfoHelper` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InstanceInfoHelper is also not public?
| - `types::StakePendingChange` | ||
| - `types::RewardsOverview` | ||
| - `types::CommonRewardData` | ||
| - `types::reward_overview::RewardsDataRaw` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not public?
allanbrondum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just have a few comments for making changelog more precise
Purpose
Guard serde relevant constructs behind a feature flag eventually to be turned off by default
Changes
cd serde-refactor && cargo run -- ../concordium-rust-sdk/src --dry-runto see candidates insrcsrc/**andexamples/**Checklist
hard-to-understand areas.
CLA acceptance
By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0
link: https://developers.concordium.com/CLAs/Contributor-License-Agreement-v1.0.pdf
I accept the above linked CLA.